package com.fs.service;

import com.fs.model.DiskBlock;
import com.fs.model.FAT;
import com.fs.util.FATFactory;

import java.util.List;

public class PathService {

    public FAT fat= FATFactory.getFATInstance();

    public void changePathPresent(String pathName) {
        List<DiskBlock> presentBlockList = fat.getPresentBlockList();
        presentBlockList.clear();
        List<DiskBlock> blockList = fat.getBlockList(pathName);
        presentBlockList.addAll(blockList);
    }

}
